class Timeline < ActiveRecord::Base

has_many :timeline_band_infos

has_many :timeline_events



#END:has_many

 

  # ...
  #END:select

  #START:validate
  validates_presence_of :title

  validates_inclusion_of :detail_unit, :in => UNITS 
  validates_inclusion_of :overview_unit, :in => UNITS
   validates_length_of :description, :in => 0..1000
   validates_numericality_of :detail_pixels, :only_integer => true, :message => "can only be whole number."
   validates_inclusion_of :detail_pixels, :in => 1..1000, :message => "can only be between 1 and 1000."
   validates_numericality_of :overview_pixels, :only_integer => true, :message => "can only be whole number."
   validates_inclusion_of :overview_pixels, :in => 1..1000, :message => "can only be between 1 and 1000."
  # ...
  #END:validate






end

